package cn.akwangl.design.pattern.creational.builder;

import org.apache.ibatis.builder.xml.XMLConfigBuilder;

/**
 * 建造者v1 test.
 * <p>
 * 实例<br/>
 * {@link StringBuilder}
 * {@link XMLConfigBuilder}
 * </p>
 *
 * @author youyongkun
 * @date 2021/11/24 10:45
 * @since 1.0
 */
public class Test {
    public static void main(String[] args) {
        CourseBuilder courseBuilder = new CourseActualBuilder();
        Coach coach = new Coach();
        coach.setCourseBuilder(courseBuilder);

        Course course = coach.makeCourse("Java设计模式精讲",
                "Java设计模式精讲PPT",
                "Java设计模式精讲视频",
                "Java设计模式精讲手记",
                "Java设计模式精讲问答");
        System.out.println(course);

    }
}
